package file;

import javax.imageio.IIOException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class demo8 {
    public static void main(String[] args) throws IOException {
        try (InputStream inputStream = new FileInputStream("E:/桌面/代码库/java-ee/file/src/text.txt")){
            Scanner scanner = new Scanner(inputStream);
            String s = scanner.nextLine();
            System.out.println(s);
        }
    }
}
